package org.dromara.pe.domain.bo;


import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.pe.domain.DeviceApi;

/**
 * 【请填写功能名称】业务对象 phy_device_api
 *
 * @author Lion Li
 * @date 2024-09-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceApi.class, reverseConvertGenerate = false)
public class DeviceApiBo extends BaseEntity {

    /**
     * 接口id
     */
    @NotNull(message = "接口id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 运动项目名称
     */
    @NotBlank(message = "运动项目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sportName;

    /**
     * 运动项目ID
     */
    @NotBlank(message = "运动项目ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sportId;

    /**
     * 是否启用
     */
    @NotNull(message = "是否启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer enable;

    /**
     * 接口说明
     */
    @NotBlank(message = "接口说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String descript;

    /**
     * 接口参数
     */
    @NotBlank(message = "接口参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String param;

    /**
     * 数据处理组件
     */
    @NotBlank(message = "数据处理组件不能为空", groups = { AddGroup.class, EditGroup.class })
    private String component;


}
